const data = {
  nodes: [{
    id: 'node1',
    style: {
        fill: 'red',
        stroke: 'blue'
    },
    label: {
        text: '测试\n测试测试测试测试',
        fill: '#fff'
    },
    x: 50,
    y: 250
  },{
    id: 'node2',
    x: 450,
    y: 250
  }],
  edges: [{
    id: 'edge1',
    target: 'node2',
    source: 'node1'
  }]
};
const graph = new G6.Graph({
  container: 'mountNode',
  width: 500,
  height: 500
});
graph.read(data);